﻿using Baby.Shop.Domain.Shared.SystemManagement.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;

namespace Baby.Shop.Domain.SystemManagement.Resource
{
    /// <summary>
    /// 
    /// </summary>
    public class MinioReource : FullAuditedAggregateRoot<string>
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="id"></param>
        public MinioReource(string id)
        {
            Id = id;
            Status = StatusResource.Normal;
        }
        /// <summary>
        /// 状态
        /// </summary>
        public virtual StatusResource Status { get; set; }
        /// <summary>
        /// 资源类型
        /// </summary>
        public virtual TypeResource ResourceType { get; set; }
        /// <summary>
        /// 资源归属
        /// </summary>
        public virtual SourceResource SourceResource { get; set; }

        /// <summary>
        /// 单据id
        /// </summary>
        public virtual string SecurityId { get; set; }
        /// <summary>
        /// 后缀名
        /// </summary>
        public virtual string NameSuffix { get; set; }
        /// <summary>
        /// BucketName
        /// </summary>
        public virtual string BucketName { get; set; }

        /// <summary>
        /// ObjectName
        /// </summary>
        public virtual string ObjectName { get; set; }
        /// <summary>
        /// FileName
        /// </summary>
        public virtual string FileName { get; set; }
        /// <summary>
        /// Content-Type
        /// </summary>
        public virtual string ContentType { get; set; }
    }
}
